Skip to content

Drop bin/cua, fold DESIGN.md into architecture.md, delete .cursor - #27

Merged
rgarcia merged 2 commits into
mainfrom
hypeship/cleanup-bin-cursor-design
Jun 12, 2026
Merged

Drop bin/cua, fold DESIGN.md into architecture.md, delete .cursor#27
rgarcia merged 2 commits into
mainfrom
hypeship/cleanup-bin-cursor-design

Conversation

@rgarcia

@rgarcia rgarcia commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Repo cleanup follow-up to the cua-cli → CuaAgentHarness migration:

  • Delete bin/cua wrapper script and update install instructions in
    README.md and packages/cli/README.md to run the CLI via
    npx tsx packages/cli/src/cli.ts. The wrapper exec'd node packages/cli/dist/cli.js,
    which doesn't currently work because the dist build emits relative
    imports without .js extensions (a separate pre-existing build issue).
    Verified the npx tsx path works from this checkout.
  • Delete .cursor/ entirely; it only held a stale
    plans/cua-ai-agent.md and was already gitignored.
  • Merge docs/DESIGN.md into docs/architecture.md as a new
    "Product principles" section covering "Package the boring plumbing",
    "Do not over-own the agent", and "Keep model refs explicit". Dropped
    the layering diagram and "Current Surface" section (both already
    covered in architecture.md). Deleted docs/DESIGN.md. No other files
    in the repo referenced DESIGN.md.
  • Stale-docs housekeeping in docs/cua-cli-harness-migration.md:
    status set to completed; removed the "npm deprecate" follow-up since
    the deprecated provider packages were never published to npm.

Tests

  • npm test --workspace @onkernel/cua-cli — 29 passed, 4 skipped
    (ptywright fixture tests skip without native binding, as expected
    outside CI).
  • npm run build --workspace @onkernel/cua-ai,
    npm run build --workspace @onkernel/cua-agent,
    npm run build --workspace @onkernel/cua-cli — all green.
  • npm run typecheck — green.
  • The root npm run build still hits a pre-existing @onkernel/ptywright
    native combine-archives failure unrelated to this PR (CI uses the
    zig-cache to avoid it).

Judgment calls

  • For the README install path I picked npx tsx over npm link because
    npm link would symlink the bin entry to the same dist/cli.js that
    fails at runtime. npx tsx reads the TypeScript source directly and is
    verified working in this checkout.

Note

Low Risk
Documentation and dev-workflow changes only; no runtime or application logic is modified.

Overview
Removes the bin/cua wrapper and documents running the CLI with npx tsx packages/cli/src/cli.ts (plus an optional shell function that preserves the caller’s cwd). Drops npm run build from the quickstart/install path because the old wrapper targeted dist/cli.js, which doesn’t run cleanly with relative imports lacking .js extensions.

Deletes .cursor/ (stale plan only) and docs/DESIGN.md, folding its product principles into docs/architecture.md as a new section—without the old layering diagram or “Current Surface” block already covered elsewhere.

Updates docs/cua-cli-harness-migration.md: migration status completed, and removes npm deprecate follow-ups for packages that were never published.

Reviewed by Cursor Bugbot for commit bc05db4. Bugbot is set up for automated code reviews on this repo. Configure here.

rgarcia and others added 2 commits June 12, 2026 14:47
- Remove bin/cua wrapper and update install paths in README.md and
  packages/cli/README.md to run the CLI via npx tsx from source. The
  wrapper assumed a built dist/cli.js that's currently broken at runtime
  in the workspace.
- Delete .cursor/ directory (stale plans/cua-ai-agent.md only).
- Merge docs/DESIGN.md into docs/architecture.md as a new "Product
  principles" section covering "Package the boring plumbing", "Do not
  over-own the agent", and "Keep model refs explicit"; drop the layering
  diagram and "Current Surface" section (already covered in
  architecture.md). Delete docs/DESIGN.md.
- Mark docs/cua-cli-harness-migration.md status completed and drop the
  npm deprecate follow-up — the deprecated packages were never published.
- Swap the README cua() shell function to a cwd-preserving form so
  --out, transcript bucketing, and .agents/skills discovery use the
  caller's directory, not the repo root.
- Add a brief "from the repo root" note to the cli README install
  block to remove path ambiguity.
- Drop the stale "Out of scope: npm deprecate of the published
  provider packages" bullet from the PR 4 section in
  docs/cua-cli-harness-migration.md — those packages were never
  published to npm.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@rgarcia
rgarcia marked this pull request as ready for review June 12, 2026 15:15
@firetiger-agent

Copy link
Copy Markdown

Firetiger deploy monitoring skipped

This PR didn't match the auto-monitor filter configured on your GitHub connection:

PRs in the kernel, infra, hypeman, and hypeship repos. kernel is a ~mono repo with many logical services underneath, ensure to focus on the implicated service for the PR

Reason: PR appears to be in the cua-cli or similar package within kernel, but consists entirely of documentation/cleanup changes (deleting scripts, merging docs, gitignored files) with no changes to core service logic that would warrant deploy monitoring.

To monitor this PR anyway, reply with @firetiger monitor this.

@rgarcia
rgarcia merged commit fec4254 into main Jun 12, 2026
6 checks passed
@rgarcia
rgarcia deleted the hypeship/cleanup-bin-cursor-design branch June 12, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant